Carlos Garnacho [Mon, 10 Jan 2011 22:49:21 +0000 (23:49 +0100)]
Add missing CSS class defines to gtk3-sections.txt
Carlos Garnacho [Mon, 10 Jan 2011 22:23:54 +0000 (23:23 +0100)]
GtkThemingEngine: Fix handles rendering
The wrong class was being used, so the theming engine didn't
match it properly.
Carlos Garnacho [Mon, 10 Jan 2011 22:16:09 +0000 (23:16 +0100)]
GtkStyleContext: Do not cancel possibly unstarted transitions
It might happen that this overcautious check is done on an animation
that didn't have time to gather invalidation rectangles.
Carlos Garnacho [Mon, 10 Jan 2011 22:11:42 +0000 (23:11 +0100)]
Cleanup leftover code in gtkplug-x11
This code was part of the GdkDeviceManagerCore hack
Carlos Garnacho [Mon, 10 Jan 2011 22:11:00 +0000 (23:11 +0100)]
Mark gtk_widget_style_attach() as deprecated.
This isn't needed anymore.
Carlos Garnacho [Mon, 10 Jan 2011 22:48:22 +0000 (23:48 +0100)]
Fix compiler warning.
Carlos Garnacho [Mon, 10 Jan 2011 21:57:31 +0000 (22:57 +0100)]
Add gtk_widget_set_device_enabled()
This function is a more convenient variant than
gtk_widget_set_device_events(), as it will
1) perform changes down a widget hierarchy, to
all windows.
1) use the same event mask than gdk_window_get_events()
Carlos Garnacho [Mon, 10 Jan 2011 21:55:31 +0000 (22:55 +0100)]
GtkTextUtil: Fix typo
Use the right "context" object around in GtkStyleContext methods.
Paolo Borelli [Mon, 10 Jan 2011 20:34:08 +0000 (21:34 +0100)]
Set the proper css class when getting attributes.
Hans Breuer [Mon, 10 Jan 2011 20:35:53 +0000 (21:35 +0100)]
[portability] Use G_PI rather than M_PI
Hans Breuer [Mon, 10 Jan 2011 20:34:33 +0000 (21:34 +0100)]
Bug 639127 - Add missing gdkdisplaymanager-win32.c
Carlos Garnacho [Mon, 10 Jan 2011 19:45:23 +0000 (20:45 +0100)]
Add gtk_style_context_scroll_animations()
This function will be needed in widgets like GtkTreeView,
since gdk_window_scroll() doesn't trigger the usual
mechanisms to update the invalidation area, this function
is needed together with it.
Carlos Garnacho [Mon, 10 Jan 2011 19:40:37 +0000 (20:40 +0100)]
Make GtkCalendar use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 19:19:58 +0000 (20:19 +0100)]
Do not set any padding for scrolled window children.
Carlos Garnacho [Mon, 10 Jan 2011 19:13:56 +0000 (20:13 +0100)]
GtkCssProvider: enable parsing negative GtkBorders
this can be used as in regular CSS under some situations,
so child items overlap the parent element's border.
Carlos Garnacho [Mon, 10 Jan 2011 19:09:34 +0000 (20:09 +0100)]
Make GtkTextUtil use GtkStyleContext.
Paolo Borelli [Sun, 9 Jan 2011 22:10:47 +0000 (23:10 +0100)]
CSS styles for the selection in a TextView.
https://bugzilla.gnome.org/show_bug.cgi?id=639106
Paolo Borelli [Sun, 9 Jan 2011 21:42:06 +0000 (22:42 +0100)]
Port GtkTextDisplay to StyleContext.
Use the new StyleContext and StateFlags to draw the text
https://bugzilla.gnome.org/show_bug.cgi?id=639105
Matthias Clasen [Mon, 10 Jan 2011 17:06:31 +0000 (12:06 -0500)]
add gtknumerable.c to POTFILES.in
Yaakov Selkowitz [Sun, 9 Jan 2011 08:46:35 +0000 (02:46 -0600)]
Fix remaining usage of g[dk]ktargetlib.
This is a follow-up to commit
07d49ee56a4ce86d9d6154e00ff6b10bd3bdc2a4.
https://bugzilla.gnome.org/show_bug.cgi?id=639047
Matthias Clasen [Mon, 10 Jan 2011 16:49:06 +0000 (11:49 -0500)]
Add a setter for GtkWindow.has_user_ref_count
This is needed for some language bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=638880
Matthias Clasen [Mon, 10 Jan 2011 15:59:50 +0000 (10:59 -0500)]
More doc build fixes
Grr, our mixture of xml and plain text in long descriptions is
a mess.
Matthias Clasen [Mon, 10 Jan 2011 14:47:09 +0000 (09:47 -0500)]
Fix doc syntax
Javier Jardón [Mon, 10 Jan 2011 13:20:13 +0000 (13:20 +0000)]
build: Use mkdir_p instead mkinstalldirs
As we don't use mkinstalldirs, $(mkinstalldirs) is simply an
alias for $(mkdir_p)
Tristan Van Berkom [Mon, 10 Jan 2011 13:26:46 +0000 (22:26 +0900)]
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
Tristan Van Berkom [Sun, 9 Jan 2011 06:25:53 +0000 (15:25 +0900)]
Added GtkBuildable support for specifying <items> in GtkComboBoxText.
Tristan Van Berkom [Sun, 9 Jan 2011 05:06:19 +0000 (14:06 +0900)]
Added GtkBuildable support to add "tag" children to GtkTextTagTable.
Tristan Van Berkom [Sun, 9 Jan 2011 04:10:40 +0000 (13:10 +0900)]
Added GtkBuilder support for "menu" child type of GtkMenuToolButton
Tristan Van Berkom [Mon, 10 Jan 2011 09:46:51 +0000 (18:46 +0900)]
Fixed GtkCellAreaBox to not allocate invisible cells.
This was already done for the most part but not taken care
of for single cell groups (which is the most common case).
Tristan Van Berkom [Mon, 10 Jan 2011 08:56:51 +0000 (17:56 +0900)]
Fixed GtkCellArea to never activate/start editing insensitive cells.
Included extension to tests/testtreeedit to show this is working properly.
Carlos Garnacho [Mon, 10 Jan 2011 02:41:19 +0000 (03:41 +0100)]
Ensure GtkStyleContext is generated on gtk_widget_render_icon_pixbuf()
This fixes some warnings seen when this is called early
on non yet styled widgets.
Carlos Garnacho [Mon, 10 Jan 2011 02:38:35 +0000 (03:38 +0100)]
Make GtkViewport use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 02:31:35 +0000 (03:31 +0100)]
Add gtk_style_context_cancel_animations()
This function takes a region ID and cancels all animations
on or beneath that region (as in push/pop_animatable_region).
First user of this is GtkWidget itself, so unmapped widgets
have looping animations cancelled. Fixes bug #638119, reported
by Jesse van den Kieboom.
Carlos Garnacho [Mon, 10 Jan 2011 01:46:29 +0000 (02:46 +0100)]
Make GtkLayout use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:45:14 +0000 (02:45 +0100)]
Make GtkImage use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:42:05 +0000 (02:42 +0100)]
Make GtkPrintUnixDialog use GtkStyleContext.
Carlos Garnacho [Mon, 10 Jan 2011 01:39:12 +0000 (02:39 +0100)]
Make GtkFontSelection use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:37:26 +0000 (02:37 +0100)]
Make GtkHSV use GtkStyleContext
two custom classes replace the light/dark focus detail strings,
it doesn't make much sense to have a GTK_STYLE_CLASS_* for that.
Carlos Garnacho [Mon, 10 Jan 2011 01:31:23 +0000 (02:31 +0100)]
Make GtkColorSelection use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:30:25 +0000 (02:30 +0100)]
Make GtkColorButton use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:26:28 +0000 (02:26 +0100)]
Update _gtk_button_paint() arguments to GtkStyleContext
The detail strings weren't in use anymore, and the state
argument is now a GtkStateFlags. GtkToggleButton has been
updated as well.
Carlos Garnacho [Mon, 10 Jan 2011 01:21:06 +0000 (02:21 +0100)]
Remove recent GtkStyle usage in GtkWindow
GtkStyleContext API is used instead.
Fran Diéguez [Sun, 9 Jan 2011 23:02:32 +0000 (00:02 +0100)]
Updated Galician translations
Paolo Borelli [Sun, 9 Jan 2011 17:10:50 +0000 (18:10 +0100)]
Obtain the fg color from the renderer
prepare_run must have been called before draw_shape, so we can avoid
fiddling the the (deprecated) style and state and just use the color
alredy set on the renderer.
https://bugzilla.gnome.org/show_bug.cgi?id=639079
Paolo Borelli [Sun, 9 Jan 2011 00:32:49 +0000 (01:32 +0100)]
Remove stipple attributes
GtkTextView does not support them anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=639030
Paolo Borelli [Sat, 8 Jan 2011 23:16:20 +0000 (00:16 +0100)]
Small cleanup in gailtextview code.
Fold gail_misc_add_to_attr_set into the only function calling it, which
avoids a useless big "switch" and results in much less code.
https://bugzilla.gnome.org/show_bug.cgi?id=639030
Yaron Shahrabani [Sun, 9 Jan 2011 19:04:58 +0000 (21:04 +0200)]
Updated Hebrew translation
Fran Diéguez [Sun, 9 Jan 2011 15:42:40 +0000 (16:42 +0100)]
Updated Galician translations
Milan Bouchet-Valat [Sat, 8 Jan 2011 16:25:39 +0000 (17:25 +0100)]
[Doc] gtk_symbolic_color_resolve()'s props arg can be NULL
Document this behavior and add annotations.
Jorge González [Sat, 8 Jan 2011 12:49:31 +0000 (13:49 +0100)]
Updated Spanish translation, fixes bug #638991
Javier Jardón [Sat, 8 Jan 2011 09:56:59 +0000 (10:56 +0100)]
docs: Fix typo in GtkWidget geometry-management documentation
Reported by Andrew Cowie in
https://bugzilla.gnome.org/show_bug.cgi?id=638963
Tristan Van Berkom [Sat, 8 Jan 2011 09:46:46 +0000 (18:46 +0900)]
Adding missing gtk-doc annotations.
GtkProgressBar:show-text, GtkScrolledWindow:min-content-width/height
are new properties in 3.0.
Bruce Cowan [Fri, 7 Jan 2011 23:25:18 +0000 (23:25 +0000)]
Updated British English translation
Carlos Garnacho [Fri, 7 Jan 2011 20:51:23 +0000 (21:51 +0100)]
Translate KeyPress/KeyRelease in gtkplug-x11
This makes XEmbed work properly again. Only event->key.group
and is_modifier are left blank at the moment. Exposing the
necessary XKB bits should be considered, but it's not urgent
for the current usecases.
Kristian Rietveld [Fri, 7 Jan 2011 14:35:35 +0000 (15:35 +0100)]
Introduce gtk_tree_view_is_blank_at_pos()
This function is useful to figure out whether the tree view is "blank"
at a given location. For such locations you might want to popup a
custom popup menu, clear the current selection or start rubber banding.
In the future, we are planning on updating GtkTreeView's user
interactions to take advantage of this new function.
Part of bug 350618.
Kristian Rietveld [Fri, 7 Jan 2011 14:10:06 +0000 (15:10 +0100)]
Fix gtk_tree_view_column_cell_get_position()
Andika Triwidada [Fri, 7 Jan 2011 13:38:52 +0000 (20:38 +0700)]
Updated Indonesian translation
Matthias Clasen [Fri, 7 Jan 2011 13:12:07 +0000 (08:12 -0500)]
Document that GtkModuleInit doesn't receive argv anymore
Ignacio Casal Quinteiro [Fri, 7 Jan 2011 10:34:35 +0000 (11:34 +0100)]
Set the style for .view so i.e the GtkTextView gets the right style.
Tristan Van Berkom [Fri, 7 Jan 2011 09:08:51 +0000 (18:08 +0900)]
Removed special casing code in GtkCellLayout in favor of default implementation.
The fact that GtkCellLayout was checking "if (gtk_cell_layout_get_area (layout))"
and executing code contitionally from the apis instead of simply falling
back to the default implementation for these things was causing problems
in language bindings such as gtkmm... Regardless, the implementation
is cleaner this way too.
Tristan Van Berkom [Fri, 7 Jan 2011 06:47:13 +0000 (15:47 +0900)]
Fixed documentation of gtk_cell_area_set_focus_cell().
Emilio Pozuelo Monfort [Fri, 7 Jan 2011 01:30:11 +0000 (01:30 +0000)]
Support disabling X11 extensions
Based on a patch from Cyril Brulebois <kibi@debian.org>
https://bugzilla.gnome.org/show_bug.cgi?id=612918
Fran Diéguez [Thu, 6 Jan 2011 23:11:51 +0000 (00:11 +0100)]
Updated Galician translations
Matthias Clasen [Thu, 6 Jan 2011 16:27:38 +0000 (11:27 -0500)]
Forgotten documentation fix
Matthias Clasen [Thu, 6 Jan 2011 16:27:15 +0000 (11:27 -0500)]
Bump version
Matthias Clasen [Thu, 6 Jan 2011 14:06:24 +0000 (09:06 -0500)]
More documentation fixes
Matthias Clasen [Thu, 6 Jan 2011 13:23:18 +0000 (08:23 -0500)]
Undoccommentize gtktreemenu.c
Matthias Clasen [Thu, 6 Jan 2011 13:12:01 +0000 (08:12 -0500)]
Documentation fixes
Matthias Clasen [Thu, 6 Jan 2011 13:12:01 +0000 (08:12 -0500)]
Documentation fixes
Matthias Clasen [Thu, 6 Jan 2011 12:44:44 +0000 (07:44 -0500)]
Add sufficient deps to make building from 'git clean' work
Matthias Clasen [Thu, 6 Jan 2011 12:44:19 +0000 (07:44 -0500)]
Fix introspection annotation syntax
Kizito Birabwa [Thu, 6 Jan 2011 09:23:59 +0000 (10:23 +0100)]
Updated Luganda translation
Matthias Clasen [Thu, 6 Jan 2011 07:07:35 +0000 (02:07 -0500)]
Add appchooser docs
Matthias Clasen [Thu, 6 Jan 2011 06:11:49 +0000 (01:11 -0500)]
Documentation polishing
Matthias Clasen [Thu, 6 Jan 2011 06:09:14 +0000 (01:09 -0500)]
Move the GtkApplication example to the right place
Matthias Clasen [Thu, 6 Jan 2011 05:55:16 +0000 (00:55 -0500)]
Update NEWS some more
Tristan Van Berkom [Thu, 6 Jan 2011 05:27:03 +0000 (14:27 +0900)]
Fixed statement in gtkwindow.c when toplevelness changes.
Fixed a typo when checking if the heirarchy toplevel is a toplevel
before firing the hierarchy-changed signal.
Tristan Van Berkom [Mon, 3 Jan 2011 15:55:04 +0000 (00:55 +0900)]
Dont show the GtkWindow when removing it from a parent and becomming a toplevel
Showing the window causes it to try to grab focus, this causes problems
when embedded toplevels run through dispose cycles.
Tristan Van Berkom [Mon, 27 Dec 2010 06:02:01 +0000 (15:02 +0900)]
Fixed conflict while rebasing master.
Tristan Van Berkom [Sun, 26 Dec 2010 10:25:06 +0000 (19:25 +0900)]
Changes to testtoplevelembed
- Made notebook tabs smaller
- No need to hide/show toplevels after removing from a parent,
if it's visible it will be automatically shown after removing
outside of it's previous parent.
Tristan Van Berkom [Sun, 26 Dec 2010 10:13:19 +0000 (19:13 +0900)]
Fixed GtkFileChooserDefault to handle cases of being in an embedded dialog.
This involves checking the toplevelness of new toplevels before connecting
but not the *old* ones for disconnecting signals. Also take care of handling
a row_reference that becomes invalid over the course of reparenting the
filechooser into another parent.
Tristan Van Berkom [Sun, 26 Dec 2010 10:08:33 +0000 (19:08 +0900)]
Fixed GtkWindow/GtkWidget to properly emit hierarchy changed for embedded toplevels
Now GtkWindow takes some measures when setting toplevelness:
- When a window becomes toplevel after being embedded it saves
the visibility state and reshow's itself so that the window
re-realizes and presents itself again automatically
- When emitting hierarchy-changed, synthetically mark the toplevel
as not anchored, this allows the hierarchy changed propagation to
recurse properly.
GtkWidget also takes care to unset the parent window *after* unparenting
the widget and after emitting the heirarhcy changed that leaves a NULL
toplevel.
That means there are now 2 cycles of "hierarchy-changed" when removing
an embedded toplevel from a parent, first one that makes the new toplevel
a NULL one (since the toplevel flag is not yet restored), the second cycle
makes the removed window toplevel again when setting the parent window
to NULL.
Tristan Van Berkom [Fri, 24 Dec 2010 04:25:02 +0000 (13:25 +0900)]
Fixed focus handling on embedded windows.
Now GtkWindow chains up in focus vfuncs when non-toplevel, this
fixes focus in testtoplevelembed.
Tristan Van Berkom [Fri, 24 Dec 2010 03:35:56 +0000 (12:35 +0900)]
Added buttons to notebook tabs in testtoplevelembed
Now you can remove and reembed the toplevels (deleting the
toplevels put them back in the notebook).
Tristan Van Berkom [Fri, 24 Dec 2010 03:35:27 +0000 (12:35 +0900)]
Moved location of unsetting parent window inside gtk_widget_unparent().
Make sure to do this after the widget is unrealized.
Tristan Van Berkom [Fri, 24 Dec 2010 03:01:43 +0000 (12:01 +0900)]
Fixed issues with "hierarchy-changed" signal.
GtkFileChooserDefault watches the toplevel and montitors "set-focus"
signal on it... however the connection needs to be remade when the
GtkFileChooserDialog is in an embedded toplevel.
Measure's taken: GtkWindow propagates hierarchy changes when
_gtk_window_set_is_toplevel() is called, gtk_widget_unparent()
unsets the widget's parent window earlier in the function so that
the possible hierarchy change is still able to properly access the hierarchy.
GtkFileChooserDefault checks if the "new" toplevel is indeed
gtk_widget_is_toplevel() but not the old one, GtkRange has been
updated to use gtk_widget_is_toplevel() inside it's hierarhcy_changed
vfunc, other classes already do this properly.
Tristan Van Berkom [Fri, 24 Dec 2010 01:29:21 +0000 (10:29 +0900)]
Added tests/testtoplevelembed.
Tristan Van Berkom [Thu, 23 Dec 2010 17:10:07 +0000 (02:10 +0900)]
Slightly less special casing in GtkWindow for gtk_widget_is_toplevel()
Also take care of setting the resize-mode at realize time depending
on toplevelness.
Tristan Van Berkom [Thu, 23 Dec 2010 17:09:41 +0000 (02:09 +0900)]
Added docs to gtk_widget_set_parent_window.
Also stop setting the resize mode of the window.
Tristan Van Berkom [Thu, 23 Dec 2010 12:51:25 +0000 (21:51 +0900)]
Allow GtkWindow to be parented if gtk_widget_set_parent_window() is called on one
This patch makes gtk_widget_set_parent_window() undo the toplevelness
of a GtkWindow, GtkWindow then realizes itself as a normal child widget
and behaves like a normal GtkBin by checking gtk_widget_is_toplevel() in
several places (show/hide/map/unmap/draw/size_allocate/check_resize/configure_event).
Matthias Clasen [Thu, 6 Jan 2011 05:07:48 +0000 (00:07 -0500)]
Cosmetic changes
Tristan Van Berkom [Wed, 5 Jan 2011 16:30:17 +0000 (01:30 +0900)]
Ensure that GtkIconView items get redrawn when the focus cell changes.
Seems the redraw was not happenning from keynav when set_focus_cell()
was called because keynav already updates the focus-cell. Now we
just unconditionally redraw the focus item when set_focus_cell() is
called.
Tristan Van Berkom [Wed, 5 Jan 2011 12:58:32 +0000 (21:58 +0900)]
Fixed GtkIconView keynav
Icon View was not initially setting focus on a cell when
focus initially comes into the view. Focusing into whatever
is the first cell in the cursor item when set_cursor_item
is called with a NULL cell fixes this.
Tristan Van Berkom [Tue, 21 Dec 2010 12:28:46 +0000 (21:28 +0900)]
Fixed gtkiconview dispose cycle to not fire warnings.
Tristan Van Berkom [Tue, 14 Dec 2010 06:37:42 +0000 (15:37 +0900)]
Restored the old GtkIconView guess for wrap-width/width size of text cell
GtkIconView sets the minimum width of the text cell to be at least 50
pixels and otherwise twice the width of the first pixbuf cell found
in the icon list.
Tristan Van Berkom [Mon, 13 Dec 2010 09:08:37 +0000 (18:08 +0900)]
Made GtkIconView reset the context and invalidate all sizes when a row changes.
GtkIconView should have a "grow-only" mode to handle optimization to
only allow icons to grow in width when rows change, however since
GtkIconView still does not handle large numbers of rows for now we'll
just relayout the whole thing whenever a series of rows change.
Also fixed up to watch the context incase of implicit resets.
Tristan Van Berkom [Mon, 13 Dec 2010 08:41:50 +0000 (17:41 +0900)]
Removed gtk_icon_view_get_item_area()
Now use a GdkRectangle at the begining of the GtkIconViewItem
structure and just re-cast the struct to get the item area.
Tristan Van Berkom [Mon, 13 Dec 2010 07:01:58 +0000 (16:01 +0900)]
Fixed GtkIconView buildable custom tag end to let cell layout properly
handle <cell-packing>
Tristan Van Berkom [Mon, 13 Dec 2010 06:54:02 +0000 (15:54 +0900)]
Added gtk_icon_view_new_with_area()
Tristan Van Berkom [Sun, 12 Dec 2010 15:24:26 +0000 (00:24 +0900)]
GtkIconView now uses a per-row GtkCellAreaContext to store the alignments
of each row.
GtkIconView now properly calculates the height of each row separately
using a separate GtkCellAreaContext stored in an array which it can
always easily index with the item->row index for all purposes.